package com.gec.teams.wechat.db.mapper;

import com.gec.teams.wechat.db.pojo.TbCheckin;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

/**
* @author zgx
* @description 针对表【tb_checkin(签到表)】的数据库操作Mapper
* @createDate 2024-06-16 15:56:46
* @Entity com.gec.teams.wechat.db.pojo.TbCheckin
*/
@Mapper
public interface TbCheckinMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TbCheckin record);

    int insertSelective(TbCheckin record);

    TbCheckin selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbCheckin record);

    int updateByPrimaryKey(TbCheckin record);

    public Integer haveCheckin(HashMap param);

    public void insertInt(TbCheckin checkin);

    public HashMap searchTodayCheckin(int userId);
    public long searchCheckinDays(int userId);
    public ArrayList<HashMap> searchWeekCheckin(HashMap param);
}
